package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 收，发货地址
 * </p>
 *
 * @author yuanjie
 * @since 2022-09-23
 */
@Data
@TableName("TMS_MAddr")
@ApiModel(value = "AddrDO对象", description = "收，发货地址")
public class AddrDO implements Serializable {


    private static final long serialVersionUID = 7440039864758592844L;
    @ApiModelProperty("主键，地址ID")
    @TableId(value = "Addr_ID", type = IdType.AUTO)
    private Long addrId;

    @ApiModelProperty("所属公司")
    private Long addrCompanyid;

    @ApiModelProperty("编号")
    private String addrCode;

    @ApiModelProperty("客户id")
    private Long addrCustomerid;

    @ApiModelProperty("省id")
    private Long addrProvinceid;

    @ApiModelProperty("市id")
    private Long addrCityid;

    @ApiModelProperty("区id")
    private Long addrDistrictid;

    @ApiModelProperty("详细地址")
    private String addrDesc;

    @ApiModelProperty("1 收货地址 2 发货地址 3 供应商常用地址")
    private Integer addrType;

    @ApiModelProperty("创建人")
    private Long addrCreator;

    @ApiModelProperty("创建时间 ")
    private LocalDateTime addrInserttime;

    @ApiModelProperty("最新修改人")
    private Long addrUpdater;

    @ApiModelProperty("最新修改时间")
    private LocalDateTime addrUpdatetime;

    @ApiModelProperty("是否失效 0 否 1 失效")
    private Integer addrInvalid;

    @ApiModelProperty("备注")
    private String addrComments;

    @ApiModelProperty("电话")
    private String addrPhone;

    @ApiModelProperty("坐标")
    private String addrLocation;

    @ApiModelProperty("版本号")
    private Long addrVersion;

    @ApiModelProperty("坐标类型 0 大概坐标 1 精确坐标")
    private Integer addrLocationtype;

    @ApiModelProperty("描述")
    private String addrDescription;

    @ApiModelProperty("异常状态（0 无异常 1 异常（客户未提交正确定位） 2 异常（客户提交正确定位））")
    private Long addrStatus;

    @ApiModelProperty("用户重定位坐标")
    private String addrReorientation;

    @ApiModelProperty("承运方主键")
    private Long addrSupplierid;

    @ApiModelProperty("线下承运方主键")
    private Long addrSymbolid;

    @ApiModelProperty("承运方站点名称")
    private String addrSiteinfo;

    @ApiModelProperty("省名")
    @TableField(exist = false)
    private String addrProvincename;

    @ApiModelProperty("市名")
    @TableField(exist = false)
    private String addrCityname;

    @ApiModelProperty("区名")
    @TableField(exist = false)
    private String addrDistrictname;

    @ApiModelProperty("地址错误提交人 ")
    private Long addrErroupdate;

    private Integer optStatus;

    @TableField(exist = false)
    private String contactName;

    @TableField(exist = false)
    private Integer isDefault;

}
